<template>
  <view class="policy-container">
    <scroll-view scroll-y class="policy-scroll-view">
      <view class="policy-content">
        <u-parse :html="detail.content"></u-parse>
      </view>
    </scroll-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      detail: {}
    }
  },
  onLoad(option) {
    this.$api.getPolicyList({
      type: '2'
    }).then(res => {
      if (res.length) {
        this.detail = res[0]
      }
    })
  },
  methods: {
  }
}
</script>

<style>
.policy-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #ffffff;
}

.policy-scroll-view {
  height: 100%;
  width: 100%;
}

.policy-content {
  padding: 30rpx;
}
</style>
